Next | Prev | Up | Top | Contents | Index

Controlling an Animation With Timeouts

The program that performs an animation using timeouts is actually quite similar to the one using workprocs. The main difference is that the timeout interval has to be defined and functions that relied on the workproc now have to be defined to rely on the timeout. Note especially that redraw_proc() has to register a new timeout each time it's called.

You may find it most helpful to compare the full programs using xdiff or a similar tool. This section briefly points out the main differences between two example programs.


Next | Prev | Up | Top | Contents | Index